package org.linlinjava.litemall.db.config;

/**
 * @author houzb
 * @Description
 * @create 2021-12-09 20:22
 */
public class WxPayScoreConfig {

    //最低分数
    public static final int MIN_SCORE = 550;
    //最大支持的免押金额 单位元
    public static final double MAX_DEPOSIT_YUAN = 1000.0;
    //最大支持的免押金额 单位分
    public static final double MAX_DEPOSIT_FEN = MAX_DEPOSIT_YUAN * 100;

    //微信免押状态信息
    /**
     * 单据状态.
     * CREATED:商户下单已受理
     * USER_ACCEPTED:用户成功使用服务
     * FINISHED:商户完结订单
     * USER_PAID:用户订单支付成功
     * REVOKED:商户撤销订单
     * EXPIRED:订单已失效. “商户下单已受理”状态超过1小时未变动，则订单失效
     */
    public static final String WX_PAY_SCORE_STATE_CREATED = "CREATED";
    public static final String WX_PAY_SCORE_STATE_USER_ACCEPTED = "USER_ACCEPTED";
    public static final String WX_PAY_SCORE_STATE_FINISHED = "FINISHED";
    public static final String WX_PAY_SCORE_STATE_DOING = "DOING";
    public static final String WX_PAY_SCORE_STATE_DONE = "DONE";
}
